<?php
// +----------------------------------------------------------------------
// | Fanwe 多语商城建站系统 (Build on ThinkPHP)
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://www.fanwe.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: awfigq(67877605@qq.com)
// +----------------------------------------------------------------------

// 导航分类模型
define('NAME_REQUIRE',L('NAME_REQUIRE'));

class SiteCateModel extends CommonModel {
	public $_validate	=	array(
		array('name','require',NAME_REQUIRE),
	);

	public $_auto		=	array(
		array('status','1'),  // 新增的时候把status字段设置为1
	);
	
	public function getSiteCateList()
	{
		return $this->where($where)->order('sort asc,id asc')->findAll();
	}
}
?>